package com.trendata.util;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

import org.apache.mina.core.session.IoSession;

/**
 * 存放session的单例
 * 
 * @author: HuangXiuXiu Email:243559392@qq.com
 */
public class SingleSessionMap {
	private static Map<String, IoSession> map = null;

	private SingleSessionMap() {
	}

	public static Map<String, IoSession> getInstance() {
		if (map == null) {
			map = new ConcurrentHashMap<String, IoSession>();
		}
		return map;
	}

}
